php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#239263 - 03/09/03 01:28 PM [6.4] Article templates.
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
What is it?: A mod that will load different showflat and showthreaded templates for the forums you select in the admin panel, as well as use a different template for the printed view of an article post. <br /> <br />Why should you care?: Having articles in UBB Threads is pretty cool, but they look like the rest of the posts. The "posted by" column takes up a lot of space on a long post, and since most articles are pretty long the posted by info kills off a lot of room. This mod removes the posted by column for the forums you specify. It also will not display the edit, reply, and quote buttons for users who do not have the right to post in your article forum(s). <br /> <br />Who gets the props?: JoshPet for SQL commands, Gardener for scripting ideas, AllenAyres and Astaran for feedback. This one was definitely a group effort <img src="/threads/php/images/graemlins/cool.gif" alt="" /> <br /> <br />Just follow the instructions included in the zip file. For an example of how it looks check out this article at Da LAN Tech. <br /> <br />01 Jan 04: Updated for Threads 6.4 and included instructions for using a special print thread template for your articles.


Attachments
72346-Article_templates_6.4.zip (85 downloads)



Edited by Dalantech (01/01/04 11:43 AM)
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239264 - 03/09/03 01:39 PM Re: [6.2x] Article templates. [Re: jacksonm99]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Good work! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#239265 - 03/09/03 01:42 PM Re: [6.2x] Article templates. [Re: Daine]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
I couldn't have done it without all the help I got from the mods and admins here <img src="/forum/images/graemlins/peace.gif" alt="" /> <img src="/forum/images/graemlins/bow.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239266 - 03/09/03 02:09 PM Re: [6.2x] Article templates. [Re: jacksonm99]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Edited to add the changes that I made to the printthread.php file and to include a printthread-article.tmpl file <img src="/forum/images/graemlins/doah.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239267 - 03/09/03 03:09 PM Re: [6.2x] Article templates. [Re: jacksonm99]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
One more thing:<br /><br />If the person who posted an article is not the same as the person who wrote it you can use the following SQL command to change it:<br /><br />UPDATE w3t_Posts<br />SET B_PosterId = xxxx<br />WHERE B_Number = yyyy<br /><br /><br />xxxx = the user number of the person you want listed as the author of the article.<br /><br />yyyy = the post number that you want to change.<br /><br />As always, backup your database before making changes!
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239268 - 03/09/03 03:11 PM Re: [6.2x] Article templates. [Re: jacksonm99]
sirpineal Offline
Newbie

Registered: 06/30/02
Posts: 21
sweet. this will help make things more veratile and multifaceted. thanks guys.

Top
#239269 - 03/10/03 04:28 PM Re: [6.2x] Article templates. [Re: martin_]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
yes, great work on this.... looks very nice DLT <img src="/forum/images/graemlins/bow.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#239270 - 03/10/03 06:05 PM Re: [6.2x] Article templates. [Re: SurfMinister]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Nice one DLT <img src="/forum/images/graemlins/bow.gif" alt="" />
_________________________
Nikos

Top
#239271 - 03/10/03 11:47 PM Re: [6.2x] Article templates. [Re: SurfMinister]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Thanks for the props! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239272 - 03/10/03 11:48 PM Re: [6.2x] Article templates. [Re: Hal_dup2]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Thanks Nikos! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239273 - 03/11/03 12:16 AM Re: [6.2x] Article templates. [Re: jacksonm99]
shortbus Offline
Code Monkey

Registered: 04/19/02
Posts: 631
Loc: Enid, Oklahoma
where were you before with this <img src="/forum/images/graemlins/wink.gif" alt="" />. <br /><br />Do you guys conspire together, checking my site to see when I add something or have something done, and then come out with something better over here? <img src="/forum/images/graemlins/flame.gif" alt="" /> <img src="/forum/images/graemlins/mryuck.gif" alt="" /> Don't lie to me guys! I see what you're doing. <img src="/forum/images/graemlins/grin.gif" alt="" />

Top
#239274 - 03/11/03 12:37 AM Re: [6.2x] Article templates. [Re: wilstephens]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
LOL! <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Nope, I've never been to your site. Do you already have different templates for articles?
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239275 - 03/11/03 01:00 AM Re: [6.2x] Article templates. [Re: jacksonm99]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
he he<br /><br />Shhh... don't tell him. It's a game we play. LOL<br /><br />No of course not aaron. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#239276 - 03/11/03 01:41 AM Re: [6.2x] Article templates. [Re: Daine]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
So I can't tell him that we can travel into the furture, look at his mods, then come back and write them like they are ours? <img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />In the future remind me to go back and delete this post so he won't see it in the now <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239277 - 03/11/03 01:20 PM Re: [6.2x] Article templates. [Re: jacksonm99]
shortbus Offline
Code Monkey

Registered: 04/19/02
Posts: 631
Loc: Enid, Oklahoma
No, I was just having some software written as "article" software. I wanted something like this but never thought of it, of course <img src="/forum/images/graemlins/wink.gif" alt="" />. I'm just givin you a hard time man.

Top
#239278 - 03/11/03 01:22 PM Re: [6.2x] Article templates. [Re: wilstephens]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yeah, the more that you can get integrated into threads... the better. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#239279 - 03/11/03 02:25 PM Re: [6.2x] Article templates. [Re: wilstephens]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
<img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239280 - 05/02/03 12:22 AM Re: [6.2x] Article templates. [Re: jacksonm99]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
This mod works with UBB Threads 6.3 <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239281 - 05/02/03 12:51 AM Re: [6.2x] Article templates. [Re: jacksonm99]
shortbus Offline
Code Monkey

Registered: 04/19/02
Posts: 631
Loc: Enid, Oklahoma
Okay, I don't know if you have time for this, nor if you would even want to, but I have some suggestions for this mod.<br /><br />You know how tld works, with the different categories etc. I'm assuming. Going with that, you could make articles sections, such as: sports-baseball, football, basketball; women-pretty, ugly, pretty ugly; category 3-sub cat one, sub cat two, sub cat three.<br /><br />Take my site for instance. I'd have an articles page, with a customized threads template that would let the users choose to read articles by category: nursing, travel nursing, men in nursing, etc. or by specialty under nursing: er, or, med surg, etc. Or by author. <br /><br />Then you could assign authors to their own catogory and give their "weekly column" a name, or you could allow them permission to contribute to a set number of categories. <br /><br />This would basically be the same as giving permission to post in a forum, only the posts would be categorized in more of a links type format, and the text of the articles would appear just like a typical article on any other site. <br /><br />Am I crazy?

Top
#239282 - 05/02/03 01:12 AM Re: [6.2x] Article templates. [Re: wilstephens]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
You're not crazy, but it might be overkill for what you're ultimatley trying to do.<br /><br />On this site Josh developed a special page for mods that lets you click on a button to get all the mods for Threads 6.2 (for example), and to search the mods. He was kind enough to give me a copy of the php script and template that he used to make that page, and I'm going to hack it to develope an "article index" for my site. When I'm finished I'll release it as a mod that anyone can use on their own site. It's gonna be a while before I can get to it though cause I'm knee deep in developing a template set for Threads 6.3.<br /><br />As for asigning people to write columns: Just create groups for your authors, give write permissions to those groups in the forums you want them to post in, and asign authors to the groups. Then if someone wants to write a colomn they can post it in whatever article forum you've given them permission to post in (you can even set up post moderation in those forums).<br /><br />I'm hesitant to do any article development in TLD because it's not finished yet.
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239283 - 05/02/03 12:44 PM Re: [6.2x] Article templates. [Re: jacksonm99]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
an "article index" for the articles forum would be cool DLT, when you get a chance... could give someone ultimately a 'front end' for an entire articles/interviews/etc section <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#239284 - 05/02/03 12:58 PM Re: [6.2x] Article templates. [Re: SurfMinister]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Sure <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239285 - 05/07/03 11:24 PM Re: [6.2x] Article templates. [Re: jacksonm99]
shortbus Offline
Code Monkey

Registered: 04/19/02
Posts: 631
Loc: Enid, Oklahoma
would there be a way to use threads to write articles, but then make them appear in the middle of a page outside threads, like this one? <br />http://demo1.interactivetools.com/current/artman_gr030/index.html<br />

Top
#239286 - 05/08/03 12:31 AM Re: [6.2x] Article templates. [Re: wilstephens]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
you could use something like the ubbt_news script for that <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#239287 - 05/08/03 01:09 AM Re: [6.2x] Article templates. [Re: SurfMinister]
shortbus Offline
Code Monkey

Registered: 04/19/02
Posts: 631
Loc: Enid, Oklahoma
hmmn, I guess I missed that Alan. Btw, did you get that last pm I sent with my details? I never heard back from you after that.

Top
#239288 - 05/08/03 01:12 AM Re: [6.2x] Article templates. [Re: wilstephens]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
I'm not sure what you are asking. If you want to be able to post an article in Threads, and then call that post and put it into a page using a script that is outside of the Threads directory then that's easy. All you have to do is require the Threads library, querry for the post, and then create a template to display the article... sounds like a lot, but it's realy not that bad <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />Allen also makes a good point: If you take a look at how the ubbtnews.php script works (it's in the addons directory under your Threads directory) you should be able to figure out how to make the page you want.
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239289 - 12/17/03 12:12 AM This mod works for Threads 6.4... [Re: jacksonm99]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
...no changes needed <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239290 - 12/17/03 12:32 AM Re: This mod works for Threads 6.4... [Re: jacksonm99]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
muchas gracias DLT, love this one <img src="http://www.ubbdev.com/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#239291 - 12/17/03 01:49 AM Re: This mod works for Threads 6.4... [Re: SurfMinister]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Thanks for the props! A lot of the mods / admins here gave me some great feedback when I was writing the article templates <img src="http://www.ubbdev.com/forum/images/graemlins/cool.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239292 - 12/17/03 01:51 AM Re: [6.2x] Article templates. [Re: SurfMinister]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
[]AllenAyres said:<br />an "article index" for the articles forum would be cool DLT, when you get a chance... could give someone ultimately a 'front end' for an entire articles/interviews/etc section <img src="/forum/images/graemlins/smile.gif" alt="" /> [/]<br /><br />Man, I really lost track of this one! <br /><br />*Dal puts it back on his "to do" list*
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239293 - 01/01/04 10:52 AM Updated for Threads 6.4 [Re: jacksonm99]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
I was wrong -this did need an update for Threads 6.4. I've corrected the files and uploaded a new zip file to the first post.
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239294 - 02/09/04 09:07 PM Re: [6.2x] Article templates. [Re: wilstephens]
fishtails Offline
Enthusiast

Registered: 06/19/02
Posts: 307
Loc: Fernandina Beach, FL
Well done Dalantech. I had done something else using the ubbtnews.php in the addons but it was becoming a pain to keep it seperate. Your templates are great, I'm going to do some minor changes to the templates to fit better into my setup. Thanks for the hack! <img src="http://www.ubbdev.com/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
Fish or Cut Bait! http://www.fish-tails.net

[:"red"]Air traffic control? It has its ups and downs.[/] http://www.natcazjx.org

Top
#239295 - 02/10/04 06:27 AM Re: [6.2x] Article templates. [Re: ]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Thanks for the props <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239296 - 05/14/04 05:34 PM Re: [6.2x] Article templates. [Re: jacksonm99]
PatrickEgan Offline
User

Registered: 07/07/03
Posts: 26
Loc: Santa Barbara, CA USA
will this still work with 6.3
_________________________
Patrick Egan
CM Crossroads
www.cmcrossroads.com

Top
#239297 - 05/17/04 10:56 AM Re: [6.2x] Article templates. [Re: SHinZ]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
It wouldn't hurt to try it -but I can't tell you if it will work since I don't run 6.3 anymore. If it doesn't work then post your 6.3 showflat and showthreaded templates and I'll see if I can hack them for you.<br /><br />For 6.5 I'll start a new thread so that the version here will be frozen.
_________________________
Da LAN Tech

Threads Dev Moderator

Top
Page 1 of 2 1 2 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks